package com.catchdays;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.Window;

public class IntroActivity extends Activity {
	Handler handler;

	Runnable run = new Runnable() {

		@Override
		public void run() {
			Intent intent = new Intent(getApplicationContext(), MainActivity_.class);
			startActivity(intent);
			finish();

			overridePendingTransition(R.anim.intro_enter_anim, R.anim.intro_exit_anim);
		}
	};

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_intro);

		handler = new Handler();
		handler.postDelayed(run, 3000);
	}

	@Override
	public void onBackPressed() {
		super.onBackPressed();
		handler.removeCallbacks(run);
	};
}
